package com.agile.leetcode.AESandRSAandMd5.bcrypt;

/**
 * @Author:ChenZhangKun
 * @Date: 2022/9/21 21:42
 */
public class BcryptEncoderDemo {
    public static void main(String[] args) {
        String password = "czkczk";
        PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
        String encode = passwordEncoder.encode(password);
        System.out.println(passwordEncoder.encode(password));
        System.out.println(passwordEncoder.matches(password, encode));
    }
}
